package com.woniu.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.core.entity.CoreUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CoreUserMapper extends BaseMapper<CoreUser> {
    String selectUserCoreIdByUserAccount(String account);

    CoreUser selectUserByUserAccount(String account);
    void updateCoreUserPasswordByUserAccount(@Param("account") String account,
                                             @Param("password") String password);

    CoreUser selectUserByAccount(String account);

}
